package com.netposa.datawarehouse.aggregator.web.model;

public class FtrCondition extends DefaultCondition {
   private String searchText;
   private String plateNumber;
   private String type;
   private Integer nonmotorColor;
   private Integer upperColor;
   private Integer lowerColor;

   public String getSearchText() {
      return this.searchText;
   }

   public String getPlateNumber() {
      return this.plateNumber;
   }

   public String getType() {
      return this.type;
   }

   public Integer getNonmotorColor() {
      return this.nonmotorColor;
   }

   public Integer getUpperColor() {
      return this.upperColor;
   }

   public Integer getLowerColor() {
      return this.lowerColor;
   }

   public void setSearchText(String searchText) {
      this.searchText = searchText;
   }

   public void setPlateNumber(String plateNumber) {
      this.plateNumber = plateNumber;
   }

   public void setType(String type) {
      this.type = type;
   }

   public void setNonmotorColor(Integer nonmotorColor) {
      this.nonmotorColor = nonmotorColor;
   }

   public void setUpperColor(Integer upperColor) {
      this.upperColor = upperColor;
   }

   public void setLowerColor(Integer lowerColor) {
      this.lowerColor = lowerColor;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof FtrCondition)) {
         return false;
      } else {
         FtrCondition other = (FtrCondition)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$searchText = this.getSearchText();
            Object other$searchText = other.getSearchText();
            if (this$searchText == null) {
               if (other$searchText != null) {
                  return false;
               }
            } else if (!this$searchText.equals(other$searchText)) {
               return false;
            }

            Object this$plateNumber = this.getPlateNumber();
            Object other$plateNumber = other.getPlateNumber();
            if (this$plateNumber == null) {
               if (other$plateNumber != null) {
                  return false;
               }
            } else if (!this$plateNumber.equals(other$plateNumber)) {
               return false;
            }

            Object this$type = this.getType();
            Object other$type = other.getType();
            if (this$type == null) {
               if (other$type != null) {
                  return false;
               }
            } else if (!this$type.equals(other$type)) {
               return false;
            }

            label62: {
               Object this$nonmotorColor = this.getNonmotorColor();
               Object other$nonmotorColor = other.getNonmotorColor();
               if (this$nonmotorColor == null) {
                  if (other$nonmotorColor == null) {
                     break label62;
                  }
               } else if (this$nonmotorColor.equals(other$nonmotorColor)) {
                  break label62;
               }

               return false;
            }

            label55: {
               Object this$upperColor = this.getUpperColor();
               Object other$upperColor = other.getUpperColor();
               if (this$upperColor == null) {
                  if (other$upperColor == null) {
                     break label55;
                  }
               } else if (this$upperColor.equals(other$upperColor)) {
                  break label55;
               }

               return false;
            }

            Object this$lowerColor = this.getLowerColor();
            Object other$lowerColor = other.getLowerColor();
            if (this$lowerColor == null) {
               if (other$lowerColor != null) {
                  return false;
               }
            } else if (!this$lowerColor.equals(other$lowerColor)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof FtrCondition;
   }

   public int hashCode() {
      
      int result = 1;
      Object $searchText = this.getSearchText();
      result = result * 59 + ($searchText == null ? 43 : $searchText.hashCode());
      Object $plateNumber = this.getPlateNumber();
      result = result * 59 + ($plateNumber == null ? 43 : $plateNumber.hashCode());
      Object $type = this.getType();
      result = result * 59 + ($type == null ? 43 : $type.hashCode());
      Object $nonmotorColor = this.getNonmotorColor();
      result = result * 59 + ($nonmotorColor == null ? 43 : $nonmotorColor.hashCode());
      Object $upperColor = this.getUpperColor();
      result = result * 59 + ($upperColor == null ? 43 : $upperColor.hashCode());
      Object $lowerColor = this.getLowerColor();
      result = result * 59 + ($lowerColor == null ? 43 : $lowerColor.hashCode());
      return result;
   }

   public String toString() {
      return "FtrCondition(searchText=" + this.getSearchText() + ", plateNumber=" + this.getPlateNumber() + ", type=" + this.getType() + ", nonmotorColor=" + this.getNonmotorColor() + ", upperColor=" + this.getUpperColor() + ", lowerColor=" + this.getLowerColor() + ")";
   }
}
